﻿<div>
    <h1>简单列表</h1>
    <div class="well">
        <form data-bind="submit: addItem">
            <label>添加新项</label>
            <div class="input-group">
                <input class="form-control" data-bind='value: itemToAdd, valueUpdate: "afterkeydown"' />
                <span class="input-group-btn">
                    <button class="btn btn-default" type="submit" data-bind="enable: itemToAdd().length > 0">添加</button>
                </span>
            </div>
            <br/>
            <div>
                <label>你的选项</label>
                <select class="form-control" multiple="multiple" data-bind="options: items"></select>
            </div>
        </form>
    </div>
</div>